package com.zjh.menucloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: TestController
 * Description:
 * @Author zjh
 * @Create 2023/9/27 10:37
 */
@RestController
@RequestMapping("/test")
public class TestController {
	
	@Value("${server.port}")
	private String serverPort;
	
	@Value("${eureka.client.service-url.defaultZone}")
	private String ss;
	
	@GetMapping("/port")
	public String getServerPort(){
		return "拿到的端口号为：\t"+serverPort+"\t"+ss;
	}
}
